/**
 * Created by Jason_PC on 2017/7/25.
 */
require.config({
    baseUrl: 'js/lib',
    urlArgs: "bust=" + (new Date()).getTime(),
    paths: {
        app: '../app',
        jQuery:'jquery-2.0.2.min',
        socket_io:'http://192.168.1.78:8000/socket.io/socket.io.js',
        swiper:'swiper.min',
        arttemplate:'art-template/template-web',
        'jquery.barrager':'jquery-barrager/js/jquery.barrager'
    },
    shim:{
        'jquery.barrager':{
            deps: ['jQuery'],
            exports: 'jQuery.fn.barrager'
        }
    }
})
/*require(['foo'], function (foo) {
    console.log(foo);
    console.log(foo.add('Jason'));
    console.log(foo.sub('bug'));
})*/

require(['app/player'],function (player) {})

/* 动态换算rem和px值  */
var rem = 20;
function changeW() {
    rem = 20 / 320 * document.documentElement.clientWidth;
    document.documentElement.style.fontSize = rem + "px";
}
changeW();
window.addEventListener("resize", changeW, false);